import lejos.nxt.LCD;
import lejos.nxt.SensorPort;
import lejos.robotics.subsumption.Arbitrator;
import lejos.robotics.subsumption.Behavior;

public class TestBehaviors {
   public static void main(String [] args) {
      Behavior b1 = new DriveForward();
      Behavior b2 = new FrontWall(SensorPort.S2);
      Behavior b3 = new LeftWall(SensorPort.S2);
      Behavior b4 = new RightWall(SensorPort.S2);
      Behavior b5 = new NoLeftWall(SensorPort.S2);
      Behavior b6 = new NoRightWall(SensorPort.S2);
      Behavior [] bArray = {b1, b2, b3, b4, b5, b6};
      LCD.drawString("Behaviors created", 0, 0);
      Arbitrator arby = new Arbitrator(bArray);
      LCD.drawString("Arbitrator created", 0, 1);
      arby.start();
   }
}